package com.toocms.jinjuhang.ui.mine.receiver_address

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtReceiverAddressBinding
import com.toocms.jinjuhang.ui.base.BaseFgt
import com.toocms.tab.TooCMSApplication

class ReceiverAddressFgt : BaseFgt<FgtReceiverAddressBinding, ReceiverAddressModel>() {
    override fun onFragmentCreated() {
        topBar.setTitle(R.string.str_receiver_address)
    }

    override fun getLayoutResId() = R.layout.fgt_receiver_address

    override fun getVariableId() = BR.receiverAddressModel

    override fun viewObserver() {
        viewModel.stopRefreshSingleLiveEvent.observe(this) {
            binding.refreshSrl.finishRefresh()
        }
    }

    override fun getViewModel() = ReceiverAddressModel(TooCMSApplication.getInstance(), arguments)
}